package com.itboy.mall.wms.warepurchasedetail.bo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;

import java.math.BigDecimal;

/**
 * 采购需求
编辑对象 mall_ware_purchase_detail
 *
 * @author itboy
 * @date 2021-08-10
 */
@Data
@ApiModel("采购需求编辑对象")
public class MallWarePurchaseDetailEditBo {


    /**
     * $column.columnComment
     */
    @ApiModelProperty("$column.columnComment")
	@JsonSerialize(using = ToStringSerializer.class)
    private Long id;


    /**
     * 采购单id
     */
    @ApiModelProperty("采购单id")
	@JsonSerialize(using = ToStringSerializer.class)
    private Long purchaseId;

    /**
     * 采购商品id
     */
    @ApiModelProperty("采购商品id")
    @NotNull(message = "采购商品id不能为空")
	@JsonSerialize(using = ToStringSerializer.class)
    private Long skuId;

    /**
     * 采购数量
     */
    @ApiModelProperty("采购数量")
    @NotNull(message = "采购数量不能为空")
    private Long skuNum;

    /**
     * 采购金额
     */
    @ApiModelProperty("采购金额")
    private BigDecimal skuPrice;

    /**
     * 仓库id
     */
    @ApiModelProperty("仓库id")
    @NotNull(message = "仓库id不能为空")
	@JsonSerialize(using = ToStringSerializer.class)
    private Long wareId;

    /**
     * 状态[0新建，1已分配，2正在采购，3已完成，4采购失败]
     */
    @ApiModelProperty("状态[0新建，1已分配，2正在采购，3已完成，4采购失败]")
    private Long status;



}
